package pers.vic.dubbo.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import pers.vic.boot.util.JsonUtil;

import java.io.Serializable;
import java.util.Date;

/**
 * 描述:
 * @author Vic.xu
 * @date 2022-01-25 10:56
 */
public class SessionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String username;

    private int age;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    @Override
    public String toString() {
        return JsonUtil.toJson(this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
